<%
    String SSW_homebutton = "Start";
    String SSW_homelocat  = "Start";
    String SSW_page = ((String) request.getAttribute("page")) + ".jsp";
    String SSW_insession = "no session";
    // XXX String  SSW_username = "";
    //HttpSession SSW_session = request.getSession();
    if (session != null) {
        Integer SSW_uSess = (Integer) session.getAttribute("uId");
        String[] SSW_fullName = (String[]) session.getAttribute("fullName");
        if (SSW_uSess != null) {
            if (SSW_uSess != null) {
                SSW_insession = "<span style='color:#444'><i>"
                        + SSW_fullName[1] + ", "
                        + SSW_fullName[0] + "</i></span>"
                        + " &nbsp;&nbsp; (ID " + SSW_uSess
                        + " -- Session:"
                        + session.getId() + ")";
                SSW_homebutton = "User home";
                SSW_homelocat  = "User";
            }
        }
    }
%>
<html>
<head>
<link rel="stylesheet" href="/fm2/themes/1/jquery-ui.css" media="screen" ></link>
<link rel="stylesheet" href="/fm2/fm2.css" media="screen" ></link>
<script type="text/javascript" src="/fm2/jquery.js" ></script>
<script type="text/javascript" src="/fm2/jquery-ui.js" ></script>
<script type="text/javascript" src="/fm2/jquery-json.js" ></script>
<script type="text/javascript" src="/fm2/ssw1.js"></script>
<script type="text/javascript" src="/fm2/menutil.js"></script>
<script type="text/javascript" src="/fm2/ssw-dynamic-table-0.0.js"></script>
</head>
<body>
<div style="background:white;padding:3px;XXXborder:solid 1px blue;XXheight:610px;width:799px">
<h1 XXXclass="white">Field Management</h1>
<p><button value="backhome" onclick='window.location.href="/fm2/<%= SSW_homelocat %>"' ><%= SSW_homebutton %></button> 
<span style="color:#dcc;">&nbsp; <%= SSW_insession %> &nbsp;</span>
</p>
<div style="border:solid 2px #ffe45c; width:799px"></div>
<div style="background:white;padding:3px;XXXborder:solid 1px green;XXXheight:491px">
<jsp:include page="<%= SSW_page %>" />
</div>
</div>
<div>
    <p class=small><a href="http://starshineworks.com">(c) 2012 Starshine Works</a></p>
</div>
<div id="ssw_dime"></div>    
<script>
    listenToChange("Ajx");
</script>
</body>
</html>
